from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from info import create_app,db
from config import DevelopementConfig,ProductionConfig
from info import models

# from config import Config

app= create_app('development')
manager = Manager(app)

#数据库迁移
Migrate(app,db)
manager.add_command('db',MigrateCommand)
#配置
# app.config.from_object(Config)



if __name__ == "__main__":
    # manager.run()
    app.run()
